home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / lpc / RCS / lpc.man,v < prev   
Encoding:
Text File  |  1988-12-21  |  4.2 KB  |  184 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.2
  10. date     88.12.21.15.36.53;  author ouster;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     88.12.21.15.36.16;  author ouster;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @Fixup to correspond to Sprite.
  27. @
  28. text
  29. @.\" Copyright (c) 1983 Regents of the University of California.
  30. .\" All rights reserved.  The Berkeley software License Agreement
  31. .\" specifies the terms and conditions for redistribution.
  32. .\"
  33. .\"    @@(#)lpc.8    6.1 (Berkeley) 4/27/85
  34. .\"
  35. .TH LPC 8 "April 27, 1985"
  36. .UC 5
  37. .ad
  38. .SH NAME
  39. lpc \- line printer control program
  40. .SH SYNOPSIS
  41. .B lpc
  42. [ command [ argument ... ] ]
  43. .SH DESCRIPTION
  44. .I Lpc
  45. is used by the system administrator to control the
  46. operation of the line printer system.  
  47. For each line printer configured in /etc/printcap,
  48. .I lpc
  49. may be used to:
  50. .IP \(bu
  51. disable or enable a printer,
  52. .IP \(bu
  53. disable or enable a printer's spooling queue,
  54. .IP \(bu
  55. rearrange the order of jobs in a spooling queue,
  56. .IP \(bu
  57. find the status of printers, and their associated
  58. spooling queues and printer dameons.
  59. .PP
  60. Without any arguments,
  61. .I lpc
  62. will prompt for commands from the standard input.
  63. If arguments are supplied,
  64. .IR lpc
  65. interprets the first argument as a command and the remaining
  66. arguments as parameters to the command.  The standard input
  67. may be redirected causing
  68. .I lpc
  69. to read commands from file.
  70. Commands may be abreviated;
  71. the following is the list of recognized commands.
  72. .TP
  73. ? [ command ... ]
  74. .TP
  75. help [ command ... ]
  76. .br
  77. Print a short description of each command specified in the argument list,
  78. or, if no arguments are given, a list of the recognized commands.
  79. .TP
  80. abort { all | printer ... }
  81. .br
  82. Terminate an active spooling daemon on the local host immediately and
  83. then disable printing (preventing new daemons from being started by
  84. .IR lpr )
  85. for the specified printers.
  86. .TP
  87. clean { all | printer ... }
  88. .br
  89. Remove any temporary files, data files, and control files that cannot
  90. be printed (i.e., do not form a complete printer job)
  91. from the specified printer queue(s) on the local machine.
  92. .TP
  93. disable { all | printer ... }
  94. .br
  95. Turn the specified printer queues off.  This prevents new
  96. printer jobs from being entered into the queue by
  97. .IR lpr .
  98. .TP
  99. down { all | printer } message ...
  100. .br
  101. Turn the specified printer queue off, disable printing and put
  102. .I message
  103. in the printer status file. The message doesn't need to be quoted, the
  104. remaining arguments are treated like
  105. .IR echo (1).
  106. This is normally used to take a printer down and let others know why
  107. (lpq will indicate the printer is down and print the status message).
  108. .TP
  109. enable { all | printer ... }
  110. .br
  111. Enable spooling on the local queue for the listed printers. 
  112. This will allow
  113. .I lpr
  114. to put new jobs in the spool queue.
  115. .TP
  116. exit
  117. .TP
  118. quit
  119. .br
  120. Exit from lpc.
  121. .TP
  122. restart { all | printer ... }
  123. .br
  124. Attempt to start a new printer daemon. 
  125. This is useful when some abnormal condition causes the daemon to
  126. die unexpectedly leaving jobs in the queue.
  127. .I Lpq
  128. will report that there is no daemon present when this condition occurs. 
  129. If the user is the super-user,
  130. try to abort the current daemon first (i.e., kill and restart a stuck daemon).
  131. .TP
  132. start { all | printer ... }
  133. .br
  134. Enable printing and start a spooling daemon for the listed printers.
  135. .TP
  136. status { all | printer ... }
  137. Display the status of daemons and queues on the local machine.
  138. .TP
  139. stop { all | printer ... }
  140. .br
  141. Stop a spooling daemon after the current job completes and disable
  142. printing.
  143. .TP
  144. topq printer [ jobnum ... ] [ user ... ]
  145. .br
  146. Place the jobs in the order listed at the top of the printer queue.
  147. .TP
  148. up { all | printer ... }
  149. .br
  150. Enable everything and start a new printer daemon. Undoes the effects of
  151. .IR down .
  152. .SH FILES
  153. .nf
  154. .ta \w'/etc/printcap           'u
  155. /etc/printcap    printer description file
  156. /usr/spool/*    spool directories
  157. /usr/spool/*/lock    lock file for queue control
  158. .fi
  159. .SH "SEE ALSO"
  160. lpd(8),
  161. lpr(1),
  162. lpq(1),
  163. lprm(1),
  164. printcap(5)
  165. .SH DIAGNOSTICS
  166. .nf
  167. .ta \w'?Ambiguous command      'u
  168. ?Ambiguous command    abreviation matches more than one command
  169. ?Invalid command    no match was found
  170. ?Privileged command    command can be executed by root only
  171. .fi
  172. @
  173.  
  174.  
  175. 1.1
  176. log
  177. @Initial revision
  178. @
  179. text
  180. @d13 1
  181. a13 1
  182. .B /etc/lpc
  183. @
  184.